package com.arrogames.blondbattle.game.purchases.events 
{
	import com.arrogames.blondbattle.model.UnitDefinition;
	import starling.events.Event;
	
	/**
	 * ...
	 * @author Robin van den Bogaard
	 */
	public class PurchaseEvent extends Event 
	{
		
		public static const PURCHASE:String = "purchase";
		
		public function PurchaseEvent(data:UnitDefinition) {
			super(PURCHASE, true, data);
			
		}
		
		public function get unit():UnitDefinition {
			return data as UnitDefinition;
		}
		
	}

}